<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>GPU Feature Testing: Accelerated Compositing No Damage</title>
<style>
body {
  transform: translateZ(0);
}
</style>
<script>
var frameCount = 0;
var totalRafs = 50;

function runTest() {
  window.requestAnimationFrame(draw);
}
function draw() {
  console.time("___RafWithNoDamage___");
  frameCount++;
  if (frameCount == totalRafs) {
    domAutomationController.send("FINISHED");
  } else {
    window.requestAnimationFrame(draw);
  }
  console.timeEnd("___RafWithNoDamage___");
}
</script>
</head>
<body onload="runTest()">
This page should trigger accelerated-compositing, i.e., gpu process should
 launch, if accelerated-compositing is allowed. However, the RAF callback
 does no damage, so there will be no Swaps and the RAF rate should be throttled
 by software timers.
</body>
</html>
